/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

/**
 *
 * @author admin
 */
public class Login {
    private String Username;
    private String password;

    /**
     * @return the Username
     */
    public String getUsername() {
        return Username;
    }

    /**
     * @param Username the Username to set
     */
    public void setUsername(String Username) {
        this.Username = Username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }
   public boolean login (String user , String pass)  {
       if (user == null || pass == null || ! (user.equals("admin") && (pass.equals("root")))) {
           System.out.println("Data yang dimasukkan salah");
           return false ;

       }
       else {
           System.out.println("Data yang dimasukkan benar");
           return true ;
       }
   }
}
